function test() {
    plot = new Phasor(document.getElementById("canvas"), 20, 20);
    vecA = new Phasor.Vector(5, 45);
    vecB = new Phasor.Vector(9, -45);
    moveVectors();
}

function moveVectors() {
    plot.clear();
    vecA.angle += 4;
    vecB.angle += 5;
    plot.addVector("voltaje", vecA.mod, vecA.angle);
    plot.addVector("corriente", vecB.mod, vecB.angle);
    plot.draw();
    window.setTimeout(moveVectors, 50, null);
    
//    new Timeout(moveVectors, 50, null);
}

var plot;
var vecA;
var vecB;